/*
 * CustomerInfo.java
 *
 * Created on April 15, 2007, 9:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package usyd.comp5348;

import java.io.Serializable;

/**
 *
 * @author david
 */
public class CustomerInfo implements Serializable {
    public static final int UNDEFINED = -1;
    
    private int id;	            // unique customer record id
    private String name;	        // customer's name (free text)
    private String address;	    // customer's address (free text)
    
    public CustomerInfo(String name, String address) {
        this(UNDEFINED, name, address);
    }
    
    public CustomerInfo(int id, String name, String address) {
        this.setId(id);
        this.setName(name);
        this.setAddress(address);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    
}
